package com.guoranhao.web.util;

import org.springframework.stereotype.Component;

/**
 * Description:  拼接访问路径工具类<br/>
 * Version V1.0  2019-8-23 18:12  by 秦涛   (qintao@cloud-young.com) 创建
 */
@Component
public class SplicePathUtil {

    private static String IMAGE_SERVER_BASEURL = "https://guoranhaoshop.oss-cn-beijing.aliyuncs.com/";

    public String getImageServerBaseurl() {
        return IMAGE_SERVER_BASEURL;
    }

    /**
     * Description:  图片路径拼接<br/>
     * Version V1.0  2019-8-23 18:12  by 秦涛   (qintao@cloud-young.com) 创建
     * @param path 路径
     * @return 完整路径
     */
    public static String spliceUrl(String path) {
        return IMAGE_SERVER_BASEURL + path;
    }



}
